﻿using System.Globalization;
using System.Windows;
using MaternityHospitalPatients.ViewModels;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.GridView;

namespace MaternityHospitalPatients.Views
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = new MainViewModel();

            Telerik.Windows.Controls.LocalizationManager.DefaultCulture = new CultureInfo("ru-RU");
        }

        private void EditingRowsGrid_RowEditEnded(object sender, GridViewRowEditEndedEventArgs e)
        {
            if (e.EditAction == GridViewEditAction.Cancel)
            {
                return;
            }
            if (e.EditOperationType == GridViewEditOperationType.Edit)
            {
                
            }
        }
    }
}
